<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>
            <p>{{radiovalue}}</p>
            <label>
                <input type="radio" :checked="radiovalue=='html'" @change="radiovalue='html'">html
            </label>
            <label>
                <input type="radio" :checked="radiovalue=='vue'" @change="radiovalue='vue'">vue
            </label>
            <label>
                <input type="radio" :checked="radiovalue=='css'" @change="radiovalue='css'">css
            </label>

        </div>
        <hr>
        <div>
            <p>{{radiovalue1}}</p>
            <label >
                <input type="radio" v-model="radiovalue1" value="html">html
            </label>
            <label>
                <input type="radio" v-model="radiovalue1" value="css">css
            </label>
            <label>
                <input type="radio" v-model="radiovalue1" value="vue">vue
            </label>
        </div>
            <hr>
        <p>radiovalue2 :{{radiovalue2}}</p>
        <label  v-for="item in radiolist">
            <input type="radio" :value="item" v-model="radiovalue2">{{item}}
        </label>

    </div>
    <script type="module">
        import { createApp } from "../assets/vue3/vue.esm-browser.js";
        createApp({
            data() {
                return {
                    radiovalue:'css',
                    radiovalue1:'css',
                    radiovalue2:'',
                    radiolist:[
                        'html','vue','css'
                    ]
                }
            }
        }).mount("#app");
    </script>
</body>
</html>